package com.hudilao.dto;

import com.hudilao.entity.Dish;
import lombok.Data;

//数据传输对象--数据层与展示层传输数据
//前面可以用实体类接收
@Data
public class DishDTO extends Dish {

    //flavors-57

    //在dish基础之上扩展出来
    private String categoryName;

    private Integer copies;

    @Override
    public String toString() {
        return "DishDTO{" +
                "id=" + getId() +
                ", name='" + getName() + '\'' +
                ", categoryId=" + getCategoryId() +
                ", price=" + getPrice() +
                ", image='" + getImage() + '\'' +
                ", description='" + getDescription() + '\'' +
                ", status=" + getStatus() +
                ", sort=" + getSort() +
                ", createTime=" + getCreateTime() +
                ", categoryName='" + categoryName + '\'' +
                ", copies=" + copies +
                '}';
    }
}
